package 设计模式.行为型.command命令.spingboot;

import org.springframework.stereotype.Component;

@Component
public class Light {

    public void turnOn() {
        System.out.println("The light is on");
    }

    public void turnOff() {
        System.out.println("The light is off");
    }
}
